import {createRouter, createWebHashHistory} from "vue-router"

const routes = [
	{
		path: '/position',
		name: 'position',
		component: () => import('../views/position.vue')
	},
	{
		path: '/position0',
		name: 'position0',
		component: () => import('../views/position0.vue')
	},
	{
		path: '/position2',
		name: 'position2',
		component: () => import('../views/position2.vue')
	},
	{
		path: '/position3',
		name: 'position3',
		component: () => import('../views/position3.vue')
	},
	{
		path: '/position4',
		name: 'position4',
		component: () => import('../views/position4.vue')
	},
	{
		path: '/myOwn',
		name: 'myOwn',
		component: () => import('../views/myOwn.vue')
	},
	{
		path: '/',
		name: 'Home',
		component: () => import('../views/home.vue')
	},
]

const router = createRouter({
	// 4. 采用hash 模式
	history: createWebHashHistory(),
	// 采用 history 模式
	// history: createWebHistory(),
	routes, // short for `routes: routes`
});

export default router